package com.zxmc.server.service;

import com.zxmc.pojo.entity.Novel;
import com.zxmc.pojo.entity.ReadingHistory;
import com.zxmc.pojo.entity.User;
import com.zxmc.pojo.vo.ReadingHistoryVO;

import java.util.List;

public interface ReadingHistoryService {
    ReadingHistory list(Integer novelId);

    void insert(String key,ReadingHistory readingHistory);

    void update(ReadingHistory readingHistory);

    List<ReadingHistoryVO> listAll(Integer userId);

    void delete(User user);

    void deleteByNovel(Novel novel);
}
